<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<form id="pagerForm" 
	action="dept_list.action" 
	method="post" 
	onsubmit="return divSearch(this, 'dept_jbsxBox');">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
	<input type="hidden" name="parentCode" value="${parentCode }" >
</form>

<%--内容展示区域 begin --%>
<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
	<%-- 工具栏  begin --%>
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="dept_addUI.action?parentCode=${parentCode }" rel="dept_addUI"  target="dialog" mask="true" title="新增部门" height="200" resizable="false"  ><span>新增</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="dept_editUI.action?deptId={dept_id}" mask="true" rel="dept_editUI" target="dialog" height="200" resizable="false"><span>修改</span></a></li>
			<li><a class="icon-ok" href="dept_bindAreaUI.action?deptId={dept_id}" mask="true" rel="dept_bindArea" target="dialog" height="240" ><span>绑定地区</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="dept_delete.action?deptId={dept_id}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<!-- 
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出</span></a></li>
			 -->
		</ul>
	</div>
	<%-- 工具栏 end  --%>
	<%-- 分页table列表 begin --%>
	<table class="table" width="99%" layoutH="84" rel="dept_jbsxBox">
		<thead>
			<tr>
				<th width="" align="center">序号</th>
				<th width="" align="center" >部门名称</th>
				<th width="" align="center" >部门编码</th>
				<th width="" align="center" >上级部门</th>
				<%--
				<th width="">操作</th>
				 --%>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="dept" varStatus="status">
			<tr target="dept_id" rel="${dept.deptId }">
				<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
				<td>${dept.deptName}</td>
				<td>${dept.deptCode}</td>
				<td>${dept.parent.deptName}</td>
				<%--
				<td><a title="删除" target="ajaxTodo"
					href="demo/common/ajaxDone.html?id=xxx" class="btnDel">删除</a> <a
					title="编辑" target="navTab" href="demo_page4.html?id=xxx"
					class="btnEdit">编辑</a></td>
				 --%>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	<%-- 分页table列表 end --%>
	
	<%--分页信息区 begin--%>
	<div class="panelBar">
		<div class="pages">
			<span>页次&nbsp;${currentPage }&nbsp;/&nbsp;${pageCount }&nbsp;页，</span>
			<span>显示</span>
			<select class="combox" 
				name="numPerPage" 
				onchange="navTabPageBreak({numPerPage:this.value}, 'dept_jbsxBox')">
				<option ${numPerPage==20?"selected":"" } value="20">20</option>
				<option ${numPerPage==50?"selected":"" } value="50">50</option>
				<option ${numPerPage==100?"selected":"" } value="100">100</option>
			</select>
			<span>&nbsp;条，共${recordCount}条</span>
		</div>
		<div class="pagination" 
			rel="dept_jbsxBox" 
			totalCount="${recordCount}"
			numPerPage="${pageSize}" 
			pageNumShown="${pageNumShown}"
			currentPage="${currentPage }">
		</div>
			<style>
			<!--
			.panelBar .pages .select a{width:20px;}
			-->
			</style>
	</div>
	<%--分页信息区 end--%>
</div>
<%--内容展示区域 end --%>